// pages/life/index.js
Page({
	onLoad(options) {
		wx.request({
			url: 'https://devapi.qweather.com/v7/indices/1d?location=113.68,34.80&key=4c64b397a43d4bbfbc23567a0b9f0a30&type=0',
			success: (e)=>{ //采用箭头函数 
				let lifeStyle=e.data.daily
				this.setData({ lifeStyle })
			}
		})
	},
})